<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    User user = HrmUserVarify.getUser( request, response );
    int userid = user.getUID();
    JSONObject jsonData = new JSONObject();
    String sql = "select lxmc from formtable_main_405 where sqr=?";
    rs.executeQuery( sql, userid );
    String xmmcs = "";
    while (rs.next()) {
        String lxmc = Util.null2String( rs.getString( "lxmc" ) );
        String sql1 = "select xmmc from uf_zbgg where xmmc=?";
        rs1.executeQuery( sql1, lxmc );
        if (rs1.next()) {
            String xmmc = Util.null2String( rs1.getString( "xmmc" ) );
            xmmcs = "".equals( xmmcs ) ? xmmc : "," + xmmc;
        }
    }

    if (!"".equals( xmmcs )) {
        jsonData.put( "xmmcs", xmmcs );
    }
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getGysBm_Ajax=" + jsonData.toJSONString() );
%>


